package com.example.mycamerademo
import android.app.Application
import androidx.camera.camera2.Camera2Config
import androidx.camera.core.CameraXConfig
/**
 * @author tgw
 * @date 2021/9/13
 * @describe
 */


public class MyCameraXApplication : Application(),  CameraXConfig.Provider {

    //camera2的初始化
    override fun getCameraXConfig(): CameraXConfig {
        return Camera2Config.defaultConfig()
    }
}